<%= render :partial => "header" %>
<p>
<% form_for(@user) do |f| %>	
<%= f.error_messages %>

<table border="0" cellspacing="0" cellpadding="0">
	
	<tr><td valign="top">

	<div class="field">
		<table border="0" cellspacing="0" cellpadding="0">
			<tr><td valign="top">
				<div class="field_label">
					<%= t('settings.edit.first_name.label')%>
				</div>
				<div class="field_box">
		    		<%= f.text_field :first_name, :size => 12 %> 
				</div>
			</td><td valign="top" style="padding-left: 3px;">
				<div class="field_label">
					<%= t('settings.edit.last_name.label')%>
				</div>
				<div class="field_box">
		    		<%= f.text_field :last_name, :size => 15 %>
				</div>
			</td>
			</tr>
		</table>
		<div class="small"><%= t('settings.edit.first_name.example')%></div>
	</div>
	
	<div class="field">
		<div class="field_label">
			<%= t('settings.edit.email.label')%>
		</div>
		<div class="field_box">
    		<%= f.text_field :email %>
		</div>
		<div class="small"><%= t('settings.edit.email.example')%></div>
	</div>

	<div class="field">
	<div class="field_label">
		<%= t('settings.edit.login.label')%>
	</div>
	<div class="field_box">
		<%= f.text_field :login, :maxlength => 40, :size => 30 %>
	</div>
	<div class="small"><%= t('settings.edit.login.example')%></div>
	</div>
	
	<% if current_government.is_branches? %>
	<div class="field">
	<div class="field_label">
		<%= t('settings.edit.branch.label')%>
	</div>
	<div class="field_box">
		<%= f.select :branch_id, current_branches.collect{|t|[t.name, t.id]}, :include_blank => true %>
	</div>
	</div>	
	<% end %>	
	
	<div class="field">
		<div class="field_box">
			<%= f.check_box :is_mergeable %> <%= t('settings.edit.is_mergeable.label')%>
		</div>
		<div class="field_box">
			<%= f.check_box :is_newsletter_subscribed %> <%= t('settings.edit.is_newsletter_subscribed.label')%>
		</div>
	</div>	

	<p><%= f.submit t('users.edit.submit'), :class => "yellow_button" %></p>

</td><td valign="top" width="300" style="padding-left: 20px;">
	
	<div class="field">
		<div class="field_label">
			<%= t('settings.edit.zip.label')%>
		</div>
		<div class="field_box">
    		<%= f.text_field :zip %>
		</div>
	</div>

	<div class="field">
		<div class="field_label">
			<%= t('settings.edit.website.label')%>
		</div>
		<div class="field_box">
    		<%= f.text_field :website %>
		</div>
	</div>

	<div class="field">
		<div class="field_label">
			<%= t('settings.edit.birth_date.label')%>
		</div>
		<div class="field_box">
    		<%= f.date_select :birth_date, :include_blank => true, :start_year => 1908, :end_year => 1996,  :order => [:month, :day, :year] %>
		</div>
	</div>

	<% end -%>
	<p>
	</td>
</tr>
</table>